package configure

import (
	"gitee.com/xgotool/backend-framework-template/service/address"
	"gitee.com/xiaoyutab/xgotool/individual/xginplus"
)

// 获取省市区下拉列表
//
//	GET	system/configure/city
func City(c *xginplus.Context) *xginplus.Response {
	city, err := address.CityTree()
	if err != nil {
		return c.Error(err)
	}
	return c.SuccessNoPage(len(city), city)
}
